package org.adream.account.dao;

import org.adream.account.entity.OcrIdCardEntity;
import org.apache.ibatis.annotations.Param;

@BaseMybatisDao
public interface OcrIdCardDao {
	
	int insert (OcrIdCardEntity ocrIdCardEntity);
	
	int selectCountByUidAndType(@Param("uid")String uid,@Param("cardType")int cardType);
	
	//主键查询
	OcrIdCardEntity selectByImg(@Param("imgMd5")String imgMd5,@Param("cardType")int cardType);
	
	//查询ocr最后一次正确的  识别结果
	OcrIdCardEntity searchCurrentByUid(@Param("uid")String uid);
}
